﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListaTrilhaNivel.aspx.cs" Inherits="Sebrae.Academico.Trilhas.WebForms.Cadastros.ListaTrilhaNivel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <h1>Cadastro de Trilhas - Nível</h1>
    <fieldset><legend>Filtros</legend>
    <table>
        <tr>
            <td><asp:Label ID="Label1" runat="server" Text="Nível Pré-requisito" /></td>
            <td>
                <asp:DropDownList ID="ddlTrilhaNivelPrerequisito" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="Label2" runat="server" Text="Nome" /></td>
            <td>
                <asp:TextBox ID="txtNome" runat="server"  Width="481px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="Label3" runat="server" Text="Prazo (Dias)" /></td>
            <td>
                <asp:TextBox ID="txtPrazo" runat="server"  Width="31px"></asp:TextBox>
            </td>
        </tr>
        <tr><td><asp:Button ID="btnPesquisar" runat="server" Text="Pesquisar" 
                onclick="btnPesquisar_Click"></asp:Button></td></tr>
        </table>
    </fieldset>
    </div>
    <asp:GridView ID="dgTrilhaNivel" runat="server" AutoGenerateColumns="False" 
        onrowdeleting="dgTrilhaNivel_RowDeleting" 
        onselectedindexchanged="dgTrilhaNivel_SelectedIndexChanged" 
        AllowSorting="True" onsorting="dgTrilhaNivel_Sorting" DataKeyNames="ID">
        <Columns>
            <asp:CommandField SelectText="Editar" ShowSelectButton="True" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                        CommandName="Delete" Text="Excluir" OnClientClick="return confirm('Deseja Realmente Excluir este Registro?');"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PreRequisito" HeaderText="Pré-Requisito" 
                SortExpression="PreRequisito" />
            <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
            <asp:BoundField DataField="QtdPrazoDias" HeaderText="Prazo (Dias)" 
                SortExpression="QtdPrazoDias" />
        </Columns>
    </asp:GridView>
    <br />
    <asp:Button ID="btnNovo" runat="server" Text="Adicionar Trilha Nível" 
        onclick="btnNovo_Click" />
    </div>
    </form>
</body>
</html>
